import request from '@/utils/http'

// 获取问卷内容
export const getQuestionnaireContent = (params: any) => {
  return request.get({
    url: `/api/question/info/info/${params}`
  })
}

// 问卷保存
export const saveQuestionnaire = (params: any) => {
  return request.post({
    url: '/api/question/info/save',
    data: params
  })
}

// 获取问卷评估结果
export const getQuestionnaireResult = (params: any) => {
  return request.get({
    url: `/api/question/info/score/${params.id}/${params.empi}`
  })
}
